package com.pucong.gitee.database.backup.common.entity.database.dto;

import com.pucong.gitee.database.backup.common.selfenum.DatabaseTableStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;


@Data
@ApiModel("数据库 ddl、dml")
public class DatabaseTableDdlDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiParam("操作用户token")
    private String token;

    @ApiParam("数据源id")
    private String dataSourceId;

    @ApiModelProperty("数据库名称")
    private String databaseName;

    @ApiModelProperty("模式名称")
    private String schemaName;

    @ApiModelProperty("表名")
    private List<String> tableNameList;

    @ApiModelProperty("执行类型")
    private DatabaseTableStatusEnum exeStatusEnum;

    @ApiParam("需要删除的数据")
    private List<Map<String, Object>> dataList;

    @ApiParam("表名")
    private String tableName;
}
